package org.ktjiaoyu;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.security.config.annotation.authentication.configuration.EnableGlobalAuthentication;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;

@SpringBootApplication
@ComponentScan(basePackages = {"org.ktjiaoyu.*"})
@EnableGlobalMethodSecurity(prePostEnabled = true, securedEnabled = true)
//@ComponentScan(basePackages = {"com.mysecurity.security_quickstart.*"})
public class Boot02Application {

    public static void main(String[] args) {
        SpringApplication.run(Boot02Application.class, args);
    }

}
